import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-09
 * Time: 19:22
 */
public class MainTemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Random random = new Random();
        int num = random.nextInt(100);
        System.out.println(num);

        while(true){
            System.out.println("请输入你要猜的数字:");
            int n = sc.nextInt();
            if(n==num){
                System.out.println("=");
                break;
            }
            else if (n<num) {
                System.out.println("<");
            }
            else if(n>num){
                System.out.println(">");
            }
        }
    }


    //请你找出1-100之间既能被3整除，又能被5整除的所有数字，要求使用break;要么使用continue
    public static void main1(String[] args) {
        int i = 0;
        while (i <= 100) {
            if (i % 15 != 0) {
                i++;
                continue;
            }
            System.out.println(i);
        }
    }
}
